/*aceasta clasa are rol de client care sa apeleze operatiile Adauga si Sterge, prin intermediul lui
Structura, pentru obiectele de tip Vector, Lista, respectiv Multime*/

public class Client {
	public static void main(String args[])
	{
	  Structura v=new Vector(2);
      v.afiseaza();	  
	  v.adauga(0);
	  v.adauga(2);
	  System.out.println("The vector after the elements 0 and 2 were added:");
	  v.afiseaza();
	  v.sterge(0);
	  System.out.println("The vector after the erase of the element O:");
	  v.afiseaza();
	  Structura l=new Lista(2);
	  l.afiseaza();
	  l.adauga(3);
	  l.adauga(4);
	  System.out.println("The list after the elements 3 and 4 were added:");
	  l.afiseaza();
	  l.sterge(4);
	  System.out.println("The vector after the erase of the element 4:");
	  l.afiseaza();
	  Multime m=new Multime(3);
	  m.afiseaza();
	  m.adauga(1);
	  m.adauga(2);
	  m.adauga(3);
	  System.out.println("The set after the elements 1,2 and 3 were added: ");
	  m.afiseaza();
	  m.sterge(1);
	  System.out.println("The set after the erase of the element 1:");
	  m.afiseaza();
	  m.sterge(2);
	  System.out.println("The set after the erase of the element 2:");
	  m.afiseaza();
	  
	}

}
